package delegationType;

/**
 * Adapter（适配器）
 */
public class PrintBanner extends Print{

    private Banner banner;

    public PrintBanner(String string){
        banner = new Banner(string);
    }

    @Override
    void printWeak() {
        banner.showWithParen();
    }

    @Override
    void printStrong() {
        banner.showWithAster();
    }
}
